//
//  FTBaseCell.h
//  WebPDA
//
//  Created by Justin Yip on 8/15/10.
//  Copyright 2010 TenNights.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FTCellValueObserver.h"

/*
 base cell with a label
 */
@interface FTBaseCell : UITableViewCell {
	NSBundle *formBundle;
	id<FTCellValueObserver> cellValueObserver;
	//current ps
	NSDictionary *preferenceSpecifier;
	IBOutlet UILabel *label;
}
/*
 init the cell retain the form bundle
 @param bundle
 @param observer
 @param reuseIdentifier 
 we use the class name for reuseIdentifier
 */
-(id)initWithFormBundle:(NSBundle*)bundle valueObserver:(id)observer reuseIdentifier:(NSString *)reuseIdentifier;
/*
 configure the cell using PreferenceSpecifier dictionary
 */
-(void)configureWithEntity:(id)entity preferenceSpecifier:(NSDictionary*)preferenceSpecifier;

-(void)didSelected:(UITableViewController *)tableViewController;

@property(nonatomic,retain)NSBundle *formBundle;
@property(nonatomic,retain)id<FTCellValueObserver> cellValueObserver;
@property(nonatomic,retain)NSDictionary *preferenceSpecifier;
@property(nonatomic,retain)UILabel *label;
@end
